import request from '@/utils/require'
import API from './constants'
// 数据请求的页面
// 请求首页数据
export const getHomePageData = () => {
  return request({
    url: API.HOME_PAGE_API,
    method: 'GET',
    params: {
      start: 0
    }
  })
}
// 请求分类数据
export const getCategories = () => {
  return request({
    url: API.CATEGORY_API,
    method: 'GET'
  })
}
// 记载更多商品数据
export const getMore = start => request({
  url: API.RECOMMEND_PROD_API,
  method: 'GET',
  params: {
    sort: 0,
    start
  }
})
